package com.printeverywhere.dto;

/**
 * ProfileOptionsId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class ProfileOptionsId implements java.io.Serializable {

	// Fields

	private Options options;
	private Items items;

	// Constructors

	/** default constructor */
	public ProfileOptionsId() {
	}

	/** full constructor */
	public ProfileOptionsId(Options options, Items items) {
		this.options = options;
		this.items = items;
	}

	// Property accessors

	public Options getOptions() {
		return this.options;
	}

	public void setOptions(Options options) {
		this.options = options;
	}

	public Items getItems() {
		return this.items;
	}

	public void setItems(Items items) {
		this.items = items;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof ProfileOptionsId))
			return false;
		ProfileOptionsId castOther = (ProfileOptionsId) other;

		return ((this.getOptions() == castOther.getOptions()) || (this
				.getOptions() != null
				&& castOther.getOptions() != null && this.getOptions().equals(
				castOther.getOptions())))
				&& ((this.getItems() == castOther.getItems()) || (this
						.getItems() != null
						&& castOther.getItems() != null && this.getItems()
						.equals(castOther.getItems())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getOptions() == null ? 0 : this.getOptions().hashCode());
		result = 37 * result
				+ (getItems() == null ? 0 : this.getItems().hashCode());
		return result;
	}

}